const {
	defineConfig
} = require('@vue/cli-service')
module.exports = defineConfig({
	transpileDependencies: true,
	lintOnSave: false,
	publicPath: "./",
	assetsDir: "static",
	parallel: false
});
//跨域问题解决
module.exports.devServer = {
	port: 8080,
	open: true,
	host: '0.0.0.0', //是否让同一局域网下的其他人访问这个项目
	// proxy: {
	// 	"/": {
	// 		target: "http://apis.juhe.cn",
	// 		changeOrigin: true,
	// 		ws: false,
	// 		pathRewrite: {
	// 			"∧/": ""
	// 		}
	// 	}
	// },
	proxy: {
		"/project": {
			target: "http://news.sina.com.cn/",
			changeOrigin: true,
			ws: false,
			secure: true,
			pathRewrite: {
				"∧/project": ""
			}
		}
	}
};
